<template>
  <component :is="type" :info="info"></component>
</template>

<script>
  import subA from './sub-a'
  import subB from './sub-b'
  export default {
    name: 'subComp',
    components: {
      subA,
      subB
    },
    props: {
      type: {
        type: String,
        default: ''
      },
      info: {
        type: String,
        default: ''
      }
    }
  }
</script>
